import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2022/10/8.
 */
public class Pokers {
    private List<Poker> pokers = new ArrayList<>();
    private int indent = 0;
    private static String[] decor = {"♥","♠","♣","♦"};
    private static int decorSum = 4;
    private static int asum = 13;

    public void setPokers(List<Poker> pokers) {
        this.pokers = pokers;
    }
    public void setPokers(int i,int j) {
        Poker poker1 = pokers.get(j);
        Poker poker2 = pokers.get(i);
        pokers.set(i,poker1);
        pokers.set(j,poker2);

    }

    public void setIndent(int indent) {
        this.indent = indent;
    }

    public static void setDecor(String[] decor) {
        Pokers.decor = decor;
    }

    public static void setDecorSum(int decorSum) {
        Pokers.decorSum = decorSum;
    }

    public static void setAsum(int asum) {
        Pokers.asum = asum;
    }

    public void buyPokers() {
        for (int i = 1; i <= asum; i++) {
            for (int j = 0; j < 4; j++) {
                Poker poker = new Poker(Pokers.decor[j], i);
                pokers.add(poker);
            }
        }
    }

    public List<Poker> getPokers() {
        return pokers;
    }
    public Poker getPokers(int i) {
        return pokers.get(i);
    }

    public int getIndent() {
        return indent;
    }

    public static String[] getDecor() {
        return decor;
    }

    public static int getDecorSum() {
        return decorSum;
    }

    public static int getAsum() {
        return asum;
    }
}
